package com.ruoyi.mapper;

import com.ruoyi.domain.MobilOrderDetails;

import java.util.List;

/**
 * 手机端订单详情Mapper接口
 *
 * @author ruoyi
 * @date 2025-01-20
 */
public interface MobilOrderDetailsMapper {
    /**
     * 查询订单详情列表
     *
     * @param mobilOrderDetails 订单详情
     * @return 订单详情集合
     */
    public List<MobilOrderDetails> selectMobilOrderDetailsList(MobilOrderDetails mobilOrderDetails);

    /**
     * 根据订单ID查询订单详情列表
     *
     * @param orderId 订单ID
     * @return 订单详情集合
     */
    public List<MobilOrderDetails> selectOrderDetailsByOrderId(Integer orderId);

    /**
     * 根据主键查询订单详情
     *
     * @param id 订单详情主键
     * @return 订单详情
     */
    public MobilOrderDetails selectMobilOrderDetailsById(Integer id);

    /**
     * 新增订单详情
     *
     * @param mobilOrderDetails 订单详情
     * @return 结果
     */
    public int insertMobilOrderDetails(MobilOrderDetails mobilOrderDetails);

    /**
     * 修改订单详情
     *
     * @param mobilOrderDetails 订单详情
     * @return 结果
     */
    public int updateMobilOrderDetails(MobilOrderDetails mobilOrderDetails);

    /**
     * 删除订单详情
     *
     * @param id 订单详情主键
     * @return 结果
     */
    public int deleteMobilOrderDetailsById(Integer id);

    /**
     * 批量插入订单详情
     *
     * @param orderDetailsList 订单详情列表
     * @return 结果
     */
    public int batchInsertOrderDetails(List<MobilOrderDetails> orderDetailsList);
}

